package responses

import (
	"github.com/edgexfoundry/edgex-go/internal/app/dtos"
	"github.com/edgexfoundry/go-mod-core-contracts/v2/dtos/common"
)

type MultiProductTransportResponse struct {
	common.BaseWithTotalCountResponse `json:",inline"`
	ProductTransports                 []dtos.ProductTransport `json:"productTransports"`
}

func NewMultiProductTransportsResponse(requestId string, message string, statusCode int, totalCount uint32, productTransports []dtos.ProductTransport) MultiProductTransportResponse {
	return MultiProductTransportResponse{
		BaseWithTotalCountResponse: common.NewBaseWithTotalCountResponse(requestId, message, statusCode, totalCount),
		ProductTransports:          productTransports,
	}
}
